package com.wutuo.roster.api.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.wutuo.roster.provider.domain.Roster;

import java.util.Date;
import java.util.List;

@JsonIgnoreProperties({"roster_ids", "create_date", "create_month"})
public class SearchRosterRequest extends Roster {

    public SearchRosterRequest() {

    }

    public SearchRosterRequest(String cmId) {
        super();
        this.cmId = cmId;
    }

    // 机构ID
    @JsonProperty("cm_id") private String cmId;

    // 标签ID
    @JsonProperty("tag_id") private String tagId;

    // 不属于标签ID
    @JsonProperty("no_tag_id") private String noTagId;

    // 托管类型
    @JsonProperty("tg_type") private String tgType;

    // 家长电话
    @JsonProperty("parent_hone") private String pPhone;

    // 家长ID
    @JsonProperty("parent_id") private Long parentId;

    // 是否去除已经添加了的屁孩
    @JsonProperty("is_out") private Boolean isOut = false;

    @JsonProperty("roster_ids") private List<Long> rosterIds;

    @JsonProperty("crate_month") private Date createMonth;

    @Override public Date getCreateDate() {
        return createDate;
    }

    @Override public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateMonth() {
        return createMonth;
    }

    public void setCreateMonth(Date createMonth) {
        this.createMonth = createMonth;
    }

    @JsonProperty("crate_date") private Date createDate;

    public Boolean getIsOut() {
        return isOut;
    }

    public void setIsOut(Boolean isOut) {
        this.isOut = isOut;
    }

    public Long getParentId() {
        return parentId;
    }

    public String getNoTagId() {
        return noTagId;
    }

    public void setNoTagId(String noTagId) {
        this.noTagId = noTagId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getpPhone() {
        return pPhone;
    }

    public void setpPhone(String pPhone) {
        this.pPhone = pPhone;
    }

    public String getCmId() {
        return cmId;
    }

    public void setCmId(String cmId) {
        this.cmId = cmId;
    }

    public String getTagId() {
        return tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }

    public String getTgType() {
        return tgType;
    }

    public void setTgType(String tgType) {
        this.tgType = tgType;
    }

    public List<Long> getRosterIds() {
        return rosterIds;
    }

    public void setRosterIds(List<Long> rosterIds) {
        this.rosterIds = rosterIds;
    }

}
